@extends('home.public.master')
@section('content')
    <div class="main-container container">
        <ul class="breadcrumb">
            <li><a href="/"><i class="fa fa-home"></i></a></li>
            <li><a href="javascript:;">个人中心</a></li>
            <li><a href="{{route('member.member.index')}}">个人信息</a></li>
        </ul>
        <div class="row">
            <!--Middle Part Start-->
            <div id="content" class="col-sm-9">
                <h1 class=""> 您好:</h1>
                <h3 style="color: orangered;" class="title">&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
                    &nbsp;{{auth()->user()->name}}</h3>
                <form class="form-horizontal" method="post" action="{{route('member.member.storeInfo')}}">
                    @csrf
                    <fieldset>
                        <legend>基本资料</legend>
                        <div class="form-group required">
                            <label for="input-firstname" class="col-sm-2 control-label">用户名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="用户名" value="{{auth()->user()->name}}" name="name">
                            </div>
                        </div>
                        <div class="form-group required">
                            <label for="input-lastname" class="col-sm-2 control-label">性别</label>
                            <div class="col-sm-10">
                                <input  style="margin-right: 10px;" type="radio" name="sex" id="nan" {{auth()->user()->sex=='男'?'checked':''}} value="男"><label
                                    style="margin-right: 20px;" for="nan">男</label>
                                <input style="margin-right: 10px;" type="radio" name="sex" id="nv" {{auth()->user()->sex=='女'?'checked':''}} value="女"> <label
                                    for="nv">女</label>
                            </div>
                        </div>
                        <div class="form-group required">
                            <label for="input-email" class="col-sm-2 control-label">出生日期</label>
                            <div class="col-sm-10 layui-inline">
                                <input type="text" name="birthday" value="{{auth()->user()->birthday}}" class="layui-input" id="test1">
                            </div>
                        </div>
                        <div class="form-group required">
                            <label class="col-sm-2 control-label" for="">职业</label>
                            <div class="col-sm-10">
                                <select name="work" class="form-control col-sm-3" id="">
                                    <option {{auth()->user()->work=='其他'?'selected':''}} value="其他">其他</option>
                                    <option {{auth()->user()->work=='白领'?'selected':''}} value="白领">白领</option>
                                    <option {{auth()->user()->work=='学生'?'selected':''}} value="学生">学生</option>
                                    <option {{auth()->user()->work=='时尚博主'?'selected':''}} value="时尚博主">时尚博主</option>
                                    <option {{auth()->user()->work=='辣妈'?'selected':''}} value="辣妈">辣妈</option>
                                    <option {{auth()->user()->work=='艺术'?'selected':''}} value="艺术">艺术</option>
                                </select>
                            </div>
                        </div>
                    </fieldset>
                    <fieldset>
                        <legend>其他资料</legend>
                        <div class="form-group">
                            <label for="input-comment" class="col-sm-2 control-label">介绍一下自己吧!!</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" id="input-comment"  placeholder="" rows="10"
                                          name="introduction">{{auth()->user()->introduction}}</textarea>
                            </div>
                        </div>
                    </fieldset>
                    <div class="buttons clearfix">
                        <div class="pull-right">
                            <input style="background: #FF5E00; color: white;" type="submit" class="btn" value="修改资料">
                        </div>
                    </div>
                </form>
            </div>
            @include('home.public.left')
        </div>
    </div>
@endsection
@push('js')
    <script>
        layui.use('laydate', function () {
            var laydate = layui.laydate;
            //执行一个laydate实例
            laydate.render({
                elem: '#test1', //指定元素
                value: '1994年03月11日',
                format: 'yyyy年MM月dd日'
            });
        });
    </script>
    @include('member.public.address')
@endpush
